/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hxg.portmgr.core.device.bas;

import hxg.portmgr.core.device.intf.AbstractIntf;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

/**
 *
 * @author hxg
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {})
@XmlRootElement(name = "IPSectionEntry")
public class IPSectionEntry implements Serializable,AbstractIntf{
    
    @XmlAttribute
    String index;
    @XmlAttribute
    String lowIPAddress;
    @XmlAttribute
    String highIPAddress;
    
    int length;
    transient int usedNumber;

    public IPSectionEntry() {
    }
    
    
    
    public IPSectionEntry(String index){
        this.index=index;
    }

    public String getHighIPAddress() {
        return highIPAddress;
    }

    public void setHighIPAddress(String highIPAddress) {
        this.highIPAddress = highIPAddress;
    }

    public String getIndex() {
        return index;
    }

    public String getLowIPAddress() {
        return lowIPAddress;
    }

    public void setLowIPAddress(String lowIPAddress) {
        this.lowIPAddress = lowIPAddress;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getUsedNumber() {
        return usedNumber;
    }

    public void setUsedNumber(int usedNumber) {
        this.usedNumber = usedNumber;
    }    
    
    @Override
    public String toString() {
        return "IPSectionEntry{" + "index=" + index + ", lowIPAddress=" + lowIPAddress + ", highIPAddress=" + highIPAddress + '}';
    }
    
    

}
